﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="info_list.aspx.cs" Inherits="Info_info_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <Custom:Header runat="server" />
    <style>
        .pupbox{width:300px;padding:20px;}
    </style>
    <script type="text/javascript">
        $(function() {
            $("a:contains(添加)").click(function() {
                location = "info_add.aspx";
                return false;
            });

        })
    </script>
</head>
<body>
    <form runat="server">
        <Custom:ToolBar ID="ToolBar" runat="server" />
        <table  border="0" class="tabList" align="center" cellpadding="0" cellspacing="1">
        <tr class="tbhead">
            <td width="60" align=center>
                全<input type="checkbox" id="chkall" />选
            </td>
            <td>
               标题
            </td>
            <td>分类</td>
            <td>
                创建日期
            </td>
            <td>操作</td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <tr iid="<%#Eval("id") %>">
                <td>
                    <div align="center">
                        <input name="checkboxid" type="checkbox" value="<%#Eval("ID") %>" />
                    </div>
                </td>
                <td >
                   <%#Eval("title")%>
                </td>
                <td><%#Eval("category") %><%#string.IsNullOrEmpty(Eval("subcategory") as string)?"":" > "+Eval("SubCategory")%></td>
                <td><%#Eval("createdate") %></td>
                <td>
                    <a class="edit" href="info_add.aspx?id=<%#Eval("id") %>">修改</a>
                </td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
   </form>
</body>
</html>
